////////////////////////////////////////////////////////////
// Workfile : Address.cpp
// Author : Thomas Pfeiffer
// Date : 31.10.2012
// Description : Implementation of the class Address
////////////////////////////////////////////////////////////
#include <string>
#include <sstream>
#include <iostream>
#include "Address.h"

Address::Address( std::string street, size_t nr, size_t postcode, std::string town ) :
	mStreet(street), mNumber(nr), mPostcode(postcode), mTown(town) {}

// Returns the street and the number separated by a space
std::string Address::getStreetAndNumber()
{
	std::stringstream ss;

	ss << mStreet << " " << mNumber;
	return ss.str();
}

// Returns the postcode and the town separated by a space
std::string Address::getTown()
{
	std::stringstream ss;

	ss << mPostcode << " " << mTown;
	return ss.str();
}
